var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  console.log(req.query,'--------------');
  res.render('index', { title: 'Express' });
});

router.post('/', function(req,res,next){
   console.log('query:',req.query,'-------','body:',req.body);
  res.render('index', {title: 'express'})
});

router.get('/MP_verify_BhCzKCxnF7nw4AhQ.txt', function(req, res, next){
    res.send('BhCzKCxnF7nw4AhQ');
});

module.exports = router;
